/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package trivia.gui;


import javax.microedition.lcdui.*;

/**
 *
 * @author mourawi
 */
public class SubjectMenu extends List {

    public static int TEST = 0;
    public static int PRACTICE = 1;

    public SubjectMenu() {
      super("Menu", Choice.IMPLICIT);
      append("Test",null);
      append("Practice",null);

      addCommand(new Command("Cancel", Command.CANCEL, 0));
      addCommand(new Command("OK", Command.OK, 0));
    }

    public int getSelectedOption() {
        return this.getSelectedIndex();
    }
}
